package com.hefei.genericity;

/**
 * @author caizhengjun
 * @date 2020/9/4 1:45 下午
 */
public class Demo03 {
    public static void main(String[] args) {

        Generic<Integer> integerGeneric = new Generic<>(123456);

        Generic<String> stringGeneric = new Generic<>("key_value");

        System.out.println("integerGeneric.getKey() = " + integerGeneric.getKey());

        System.out.println("stringGeneric.getKey() = " + stringGeneric.getKey());
    }
}
